<?php
/*
* Copyright (c) 2010 by Cediti
*
* You may distribute under the terms of either the GNU Lesser General
* Public License or the new BSD License, as specified in the README file.
*/
// version :    22/04/2010

interface Cmis_Services_Protocol_Versionning extends Cmis_Services_Protocol_Interface
{
	
	/**
	 *
	 *
	 * @param Cmis_Repository_Id repositoryId The identifier for the Repository
	 * @param undef documentId
     * @return Cmis_Http_Response
	 */
	public function checkOut(Cmis_Repository_Id $repositoryId, $documentId);

	/**
	 *
	 *
	 * @param Cmis_Repository_Id repositoryId The identifier for the Repository
	 * @param undef documentId
	 * @return Cmis_Http_Response
	 */
	public function cancelCheckOut(Cmis_Repository_Id $repositoryId, $documentId);

	/**
	 *
	 *
	 * @param Cmis_Repository_Id repositoryId The identifier for the Repository
	 * @param undef documentId
	 * @param undef major
	 * @param undef bag
	 * @param undef content
	 * @param undef checkinComment
	 * @return Cmis_Http_Response
	 */
	public function checkIn(Cmis_Repository_Id $repositoryId, $documentId, $major, $bag, $content, $checkinComment);

	/**
	 *
	 *
	 * @param Cmis_Repository_Id repositoryId The identifier for the Repository
	 * @param undef versionSeriesId
	 * @return Cmis_Http_Response
	 */
	public function getPropertiesOfLatestVersion(Cmis_Repository_Id $repositoryId, $versionSeriesId);

	/**
	 *
	 *
	 * @param Cmis_Repository_Id repositoryId The identifier for the Repository
	 * @param undef versionSeriesId
	 * @return Cmis_Http_Response
	 */
	public function getAllVersions(Cmis_Repository_Id $repositoryId, $versionSeriesId);









	/**
	 *
	 *
	 * @param Cmis_Repository_Id repositoryId The identifier for the Repository
	 * @param undef versionSeriesId
	 * @return Cmis_Http_Response
	 * 
	 * 
	 * 
	 * 
	 * 
	 * @deprecated???
	 */
	public function deleteAllVersions(Cmis_Repository_Id $repositoryId, $versionSeriesId);

}

# EOF
